<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
    <title>Hello World</title>
</head>
<body>
<div>
    <h1>
        <s:property value="message"></s:property>
    </h1>
</div>

<div>
    <form action="helloWorld.action" method="post">
        请输入您的姓名：
        <input name="name" type="text">
        <input type="submit" value="提交">
    </form>
</div>

<div>
    <s:form action="dateConvert.action">
        <div class="infos">
            <table class="field">
                <tr>
                    <td class="field">请输入日期：</td>
                    <td><input type="text" class="text" name="timeDate" />eg:
                        yyyy 年MM 月dd 日,yyyy-MM-dd,MM/dd/yy,yyyy.MM.dd,yyMMdd,yyyy/MM/dd
                    </td>
                </tr>
                <s:fielderror />
            </table>
            <div class="buttons">
                <s:submit value="转换格式"/>
            </div>
        </div>
    </s:form>

    <div>
        <a href="download.action?fileName=2-120513213A10-L.png">点击下载</a>
    </div>
</div>
</body>
</html>
